package com.example.mapper;

import com.example.entity.yifei.Coptf;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Lan
 * @since 2024-08-05
 */
public interface CoptfMapper extends BaseMapper<Coptf> {

    @Select("SELECT ISNULL(CAST(CAST(MAX(TF004) AS NUMERIC(11))+1 AS CHAR(11)),1) FROM COPTF WHERE TF001 = #{TF001} AND TF002 = #{TF002} AND TF003 = #{TF003}")
    Integer getTF004(@Param("TF001") String tf001, @Param("TF002")  String tf002, @Param("TF003") String tf003);
}
